package cn.skyquant.quant4j.api.forex;

import cn.skyquant.quant4j.api.enums.BorkerType;
import cn.skyquant.quant4j.api.enums.ForexConfigType;

import java.io.Serializable;
import java.util.Objects;

public class ForexConfigDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    public Integer id;
    public String name;
    public ForexConfigType type;
    public BorkerType borkerType;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ForexConfigDTO)) return false;
        ForexConfigDTO that = (ForexConfigDTO) o;
        return Objects.equals(name, that.name) &&
                type == that.type;
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, type);
    }
}
